<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>help center chat list</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript" src="js/ajax-pushlet-client.js">
</script>
		<script type="text/javascript" src="js/util.js">
</script>	
	<script type="text/javascript">
var nick = getPageParameter('nick', 'anon');
var customeOnlineCount = 0;
window.onload = init;
function init() {
	p_join_listen('customerOnlineList');
	p_listen('serviceOnlineList','pull');	
	//alert('init end');
}
function onData(event){	
	p_debug(false, "pushlet-app", 'event received event=' + event.getEvent() );
	var action = event.get('action');
	var customerNick = event.get('nick');
	//alert(action);
	if (action == 'customerOnline') {	
		//customeOnlineCount ++;
		openBareFullscreenWindow(customerNick, 'helpCenterChat.jsp?nick='+nick+'&customerNick='+customerNick);
	}	
}
</script>
</head>
	<body>
		help center
	</body>
</html>
